BeforeEnterEditMode