update the view each frame