Test the selected tab not with string but with index !