before add Update Main