Changing app.stack to app._router.stack for 4.x