routing and error page working