introduced DOM structure for layout from template