only show nomorepages message when there are no more pages