updated event dispatcher, added getting last event methods