wrapping up Dialog