removed unused dialog_connect_failed() function