refactored some code, to avoid assigining inline styles
added fullscreen button