`import` and `export` panels share the same layout. We need to update the header and adapt the layout showing/hiding elements (this is the goal of this function and the class `export/import` in CSS.