Adding check event target parent container to close on popover.click