fix bugs in the index.html