add index.html based on template