A method of operating a tonneau cover and a tailgate of a vehicle, including: transmitting one or more signals to a first control module to open or lower the tailgate; determining a position of the tonneau cover with the first control module or a second control module and transmitting by the first control module and/or the second control module one or more signals to a mechanism associated with the tonneau cover to open the tonneau cover if the tonneau cover is determined by the first control module and/or the second control module to be in a closed position; and then lowering the tailgate.