fix issue to close popover on click