Added debounce and Scroll top and end events