put checks so splash screen hide only runs in app