Set up the click handler.