pagination fix keeping nav tags