Add a grouping function, so the dialogs can be grouped with given grouping name.