Add 404 logic to details def and create a details template.