added check for fullscreen mode