Updated index.html to template