adds error handling decorator for page views, along with two tests exemplifying functionality