move app launch into main script. need to fix loading screen