implements point on mouse clicks