update view controller for refreshing UI