made loading screen a class