Applied template to index