change the display mode