getting tabNo and getting activetab done