applied layout to all pages