fix events on index.html