Add the event handler