check currentTabIndex
Merge pull request #31 from Klockz/fix-maintab-selectionchanged

check currentTabIndex