Category popover dismissing properly