fix a bug in endpoint popover to allow user hide it