added scopes to ajax calls