Use templates.
handling non-existent pages
Save pages.