detail view backend