Change variable names from tab query
Add debug information to onTabFocused