Added the option to toggle between fullscreen and display modes.