change layout of pages to page