updated resize mode