Onresize event added