add event handler to testing page