Changed rootScope for scope