added automatic scrolling