some work on the detail view