Updating template to index