creation of dialog according to the parameters of the function.<br>