update scrolling behavior