fix pagination buttons