adding event type handlers (still toy)