improve index.html generates.