some more work on detail view