add event handlers example