changed page# to scope, refactored, fixed update karma method