Prevents addition of duplicates in searchclasses, add/join button changes color when clicked on