add listener to layerPanel + TODO note