add flag to prevent duplicate call loadMoreIfNeeded