updated code for fullscreen button on off state