creating updating the view