self.middleware is now self.pageMiddleware