applied layout to the page