event-handlers and atoms