added autoscroll feature