Added on-click method for canvas to move control points