Forgot cleanup the code. in Main_setDisplayMode.