wrking towrads resizing window