Clean up click binding code.