Fixed issue in Autoscroll code when data had zero rows. Also refactored out to instance method with optional scroll animation