Change index.html to template