so save detail data working

need to refactor to DAL