more efficient way of getting the selected items of the table
show already existing groups