Preserve panel after switching