Make popup close on click to anywhere else.