adding onresize change