update route and error page.