fix bugs in index.html