repaint dialog