optimized functions for launching and exiting fullscreen