configuring templates and add index.html