Made ruler draggable