Changed mouse listener to more user friendly.