update in view controller