restore highlighted state while redraw