click the canvas to add a point