added defaiult redirects back to home for 404 and 500