Changed index.html to template