* Added code to handle fullscreen mode for the whole application