refactor loading screen to synchronize with flex app