save editing mode state