add CHOOSE_SEGMENT and SEND_SEGMENT function
dose not realize send and save file function