Added a method to scroll to an element