added autoscrolling