turned index.html into html template