implements dialogs (error, progress, info, config)