Simplify use of `FramedDialog` class with respect to listeners.