added automatic scrolling on the x-axis