Changing the popovers when the mouse is clicked anywhere outside them.