renamed dom to templates