pagination only shows up when necessary now