Added detail view and tests