fixing bugs in index.html