make full screen as a function