putting in loading screen and waiting on events