clean up some type checks
enable all options that have default values
problems with default values when saving/loading arguments
Allow to pass a callback function to trigger when clicking the ok button,
cancel button. This allows e.g. to keep the dialog open while doing something when
clicking the ok button.