Added dragging for lines