formating all pages