creating event manager for the GUI