update app id and code id