implemented basic graph scrolling