updating view controller.