tab switching supports no javascript and javascript