udated AddEditDialog