Extract method to update tab's tooltip