@ core/ui/html/dialogs.php: imrproved + a bug fixed