updating model view controller