change the layout of main