Updated on click handler.