Moved all globals stuff into menu