modefy popupwindow