Use focus output function.
Schedule repaint on output focus change.
Output removal fixes.