edited _form to pass edited flag properly