refine popup box