added functional for generate index.html