Fixup compare interval refresh

.. usual signals and refresh optimization and
   bugs (switch tabs + switch compare mode).