created an event service to manage the event data to simplify things