Adds page decorator to all page view functions
Changes tests of errors to test for new error return
Fixes indentation