implemented the mouse button to replace the click button