changes in edit submit function