update index to smoothScroll