fixed dialog titles and messages switched
fixed send functions not waiting being sends