restore tabs to the last active index