update the mode of display