update main view