fixed bugs in index.html