updating the view