fixed submit on edit