fix delete function in index.html