done function now takes boolean for loadMore