Pagination buttons disabled if totalPages is null