Add global click handler to close popovers/tooltips