Updated the touchpad implementation