Handle serializing of pages