Pagination working.

Fixed formatting for pagination.