updated output to show pages