on mouse click processing