switch  to wndw onresize