adding actual functionality to the multiselect