change the layout of main page