added debounce scrolling behavior