create templates and support in index