Add GFs for modal dialogs.