Added listener for mouse clicks