add event in index.html