added template code to index.html