Added a mouse action listener that gets (x,y) for mouse clicks