Adds toggle fullscreen functionality

This commit includes adds toggle function in the file