New architecture of event handling