animation to change edit mode