updating main view