add some event handler definitions