Close the edit mode after running move to dialog, not before.