reworking left-panel to be more flexible