Add PubSub event handler
Refactor: use pubsub instead of direct dep

Remove direct dependency on navigation in router with pubsub events
library.