use cm dialog approach instead