Threading Improvments

The way the dialog box preview is generated was changed to improve the
responsivness of the controls while the preview is being generated.