defined a loading screen and some behaviors