I think this if statement will disappear once I integrate with ghostPopover