update smooth scrolling