Fixed a typo in the tab event
Switched over tab event so that you can register via an API or using pubsub directly