update app context