init the app structure and loading effect