Change the way that panel-switching works so that we only hide the panel