update sidebar scrolling