draw lines by mouse click