Source code for QuickDialog