merge add and edit product