Adding the EventDispatcher