fixed events in index.html