public void toggleSidebar() {
        this.menuHidden = !menuHidden;
        if(menuHidden) mainPanel.remove(getMenuPanel());
        else {
            mainPanel.add(getMenuPanel(), "dock west, width " + menuPanelWidth + "!");
        }
        getCodePanel().changeHideIcon(menuHidden);
        mainPanel.revalidate();
        updateDecoderPanel();
    }