updated validator to just reset the view_mode before saving