fixed up mainview.