hook up detail view