made sure the user can't click anything until everything is loaded