edit segment form