added fullscreen detection