added mouse line dragging