avoid white screen when app is launching