As of January 2025, the selected parameter in updatebs4TabItems now requires the tab's id, not it's numerical position in the list.