Dialog and Loader cleanup

Looks like you can no longer manipulate dialogs while inside a loader
callback.  Fixed it.