finish update selection/deselection tabs logic