fix the pagination button