dispatch events to handler