add the template and data sources