Refactored UICommandListDialog for reuse