added code to scroll into view