adjusted tab tracking to use window text instead of screen coordinates