implemented the Redirect class and 404 page