replace setDefaultAppId method by appId property