set the layout for main page