Print all pages functionality implemented