added a detail view and fixed the spec test