cleaned up dialog class