added mouse avoidance on mouse click