fix for  selected tabs