def autocomplete
    @collection_profiles = CollectionProfile.find_for_autocomplete(params.merge(project_id: sessions_current_project_id)).include(:taxon_names)
    data = @collection_profile.collect do |t|
      {id: t.id,
       label: ApplicationController.helpers.collection_profile_tag(t),