updating windowidth onresize