Modified.

If new tab index is equal to current index, tabs are not changed.