Preserve and restore panels.json