Apply Layout to Base template