updating resize script