created eventManager to manage pub/sub events in the app