removing unneccessary if
better encapsulation of native fullscreen api