First version of main layout