Added delay after popover X button click