wait until ready to load app