PUt close popover handler in common ui js file