implemented detail view