added a Pubsub for router:replace