You can do the same thing for the radio buttons, for example if one panel are visible and you click in an invisible panel (for other choices like in Windows), you can check whether other panels are visible and then show the panel for the selected choice.