add event handler to recorder