added notify method to rootScope