refacting code to use new tabs api