added if-isset and form-submit to editpitch form