main view fix