restructured main view