begin templates, styles and grids