Fixed index.html bugs