changed rootScope event emitting to broadcast