Add the right active check for the treepicker.