Refactored wui.dialogs.addProperties for editing