applied layout to page