added method isScrolledToBottom() to check if the ListView is at the bottom