update the view