Dialogs now working correctly.