Flexible event handling (without styling and persistence)