Write fullscreen function