fix to popup when not in grid