set badge number in state router