re-implemented autoscrolldown and ScrollToIndex with center feature