Allows proper todo item to be deleted after Drag and Drop. Refactoring