enterEditMode and exitEditMode