update app and index