Added boilerplate code for fact chooser dialogs.