remember which tab we are in when changing the panel.