First version of main-view