LHTR: moved bg change handler to proper place.
LHTR: properly react on DOM tree changes.