Update the variable of the view modes.