Moved scrollToEnd to abstract