Added hacks to make the browser work in fullscreen mode