save the current selection in the UICommandListDialog