added templating to index.html