add event to index.html