added dialog helper routines