set the layout of the page