Moved fullscreen function into app