Add support for adding custom options (checkboxes and optionboxes) to the dialogs (both native and built-in).