use templates for index and chart pages