closing popovers by clicking out of it