resolve some issue about pop-windows display