Add onResize event