updates the events stuff