Unregister click handlers when you lose