Update main view.