Correct pagination

Only show pagination when there are pages