Fix pagination

Add in conditionals for navigation arrows