minor edit to fix total pages display