Use a template to render the index