separate all the scrolling related stuff