function of saving config  modified