updates view controller