finalizing multiple pages