Implementation of the multiple selection component