documenting the new reindex_tabs function