disable modify code when the edit record