Update index.html handling errors