disable pagination when there is only one page

disable pagination when there is only one page