add event on timeupdate