update detail view