changing index.html to index.template