update dwindow and DPopupWindow