Added selectTabAtIndex method