fixed state was not saving the nested form
added hidden type