added events to index.html