Fix for the problem described on Issue 4

Fix for #4

Added the index of the clicked tab to the 'onTabClick' event. To get in that point what is the clicked tab (before that we only know about the actual tab)