added code for full screen