index title allows duplicate titles

indexTitles can now contain duplicate titles like [A ● D ● G ] or [1 | | | | | | | 2 | | | | | | | | 3]

Solved by getting the selected index not from string in indexTitles but from tag of label