working in detail view