fix left-panel layout bug
various minor fixes