check for cancel in $broadcast and $dispatch