Added trackpad functionalities (not tested)

Also, tried to fix unable to connect after cancelling problem