Added error handling to ensure all 404s and other errors go to the same page