Add scroll to function