redraw diagram