Creating the GenericDialog basics.