Update subpanels.js