main view updated