repaired drag-n-drop functionality