Used callback for mouse clicks