Udate config before edit