added scrolling event handler