change the layout of index and show page