modify basewindow