Fix the write-panel.js to show_hide any panel depending on product type