Change activeItem monitoring mechanism to use $rootScope