set IsEditMode fore component deactivation