added draw line when mouse is clicked