added auto scroll funct