After a very long and hard struggle I have finished the form1 save and edit logic