Added mouse position and click control