force repainting of the panel after undo / redo