         page.decisionTree.tasks.species.clearFilters()
         page.decisionTree.tasks.species.confirmButton.disabled = true
 
+# disable the species confirm until a value is chosen.
 field_page.el.on field_page.decisionTree.CHANGE, ({originalEvent: {detail}}) ->
   {key, value} = detail
   
   if key is 'species'
     field_page.decisionTree.tasks.species.confirmButton.disabled = false if value
 
-    
+# pick a random photo if more than one is present on a field subject
 field_page.on field_page.CREATE_CLASSIFICATION, () ->
   subject = field_page.classification.subject
   return unless Array.isArray subject.location.standard

  else 
    herbarium_page.Subject.group = groups.batch1

herbarium_page.on herbarium_page.LOAD_SUBJECT, (e, subject) ->
  is_transcriber = User.current?.preferences?[currentProject.id]?.transcriber || herbarium_page.transcriber
  transcribeAlert() if subject.group_id == groups.batch2 unless is_transcriber

  setTimeout ->
    prompt.el[0].querySelector('button').focus()
      
# add a box to show herbarium barcode number etc.
subject_metadata = new SubjectMetadata
herbarium_page.el.find('.decision-tree').prepend subject_metadata.el

# add a viewer to show the orchid type examples for field photos
orchid_type = new OrchidType
field_page.el.find('.decision-tree').before orchid_type.el
    
