added a stop scrolling function'