changing html updates page, rootScope no longer needed