Redraw based on dialog window