fixed parts of moveItemViaDrag to reflect the index-finding changes made in moveItem