properly unbind the click handler on document