update the app structure