Added scrolling function so that it scrolls from bottom to top