Extracted setting templates to one method
Redirecting non-existent pages to edit form
Saving pages
Error handling for rendering template