pagination function can customize ul class