fixing jquery ui tabs. api has changed for the tabs interface. used a different way of retrieving tab indices