Fix index.html functionality