pagination works but really really shitty
pagination on main page