Doesn't look like you are using the ConfCache in this generic `createDialog` controller.
Also, and the parameter to the `submit` function might be made more generic, say `newName`.