updates view