updated event manager.java