fixes to the drag-n-drop algorithm to allow dragging of multiple rows