Added first pass at decoupling overlays from right-hand panel via a global event handler.