Fixed pagination

Now when you want to view a different page, it finds it.