[refactor] Getting to work with events.