change add option to update option