added index.html and TEMPLATE_DIRS