- Added a method to scroll to a given index