fixed formatting issue with pagination