make main page layout