update appId