moved pagination into header