update app by id