added resize of windows