add mouse click to control the actions.