modifying index.html to template specification