Handling merge operation in the wizard.