By adding a more specialized showRenameDialog function and also cleaning up the responses/return values for showCopyModeDialog.