update app structure