working on remote control
finish the connect function for remote control