working version on fullscreen browser