Change the event handler into something more sensible.