trying to fix popup issue