working on detail view