Modifed index.html to fix bugs