Adding layout to the pages