adding pagination to nav