Detail table works, but data does not persist