Persist the view mode setting.