Added a function for scrolling