Factor out view-updating code from the heinous loop in update_view().