```coffeescript
containers    = $(".ontology-version-state")
final_states  = ["done", "failed"]
poll_time = 3000 # milliseconds

return if _.isEmpty(containers) || !containers.length

update = (container) ->
  updateContainer = (container) ->
    current_state = container.data('state')

    $.getJSON container.data('uri'), (data) ->
      state = data.state

      if state == current_state && !_.contains(final_states, state)
        enqueue(container)
      else
        current_state = state

        # display the new state
        container.find("span").text(state)

        if state == "pending"
          $(".pending_message").show()
        else
          $(".pending_message").hide()

        if _.contains(final_states, state)
          # replace spinner with refresh button
          container.find(".spinner").
            replaceWith($('<a />').
              attr('href', document.location.href).
              attr('class', 'btn btn-info btn-sm').
              append($('<i />').
                attr('class', 'icon-refresh')).
              text('refresh'))
        else
          enqueue(container)

  if _.isUndefined(container)
    containers.each ->
      updateContainer($(this))
  else
    updateContainer(container)

enqueue = (container) ->
  setTimeout (-> update(container)), poll_time

enqueue()
```

Read correct field for state update.
user
```coffeescript
containers    = $(".ontology-version-state")
final_states  = ["done", "failed"]
poll_time = 3000 # milliseconds

return if _.isEmpty(containers) || !containers.length

update = (container) ->
  updateContainer = (container) ->
    current_state = container.data('state')

    $.getJSON container.data('uri'), (data) ->
      state = data.evaluation_state

      if state == current_state && !_.contains(final_states, state)
        enqueue(container)
      else
        current_state = state

        # display the new state
        container.find("span").text(state)

        if state == "pending"
          $(".pending_message").show()
        else
          $(".pending_message").hide()

        if _.contains(final_states, state)
          # replace spinner with refresh button
          container.find(".spinner").
            replaceWith($('<a />').
              attr('href', document.location.href).
              attr('class', 'btn btn-info btn-sm').
              append($('<i />').
                attr('class', 'icon-refresh')).
              text('refresh'))
        else
          enqueue(container)

  if _.isUndefined(container)
    containers.each ->
      updateContainer($(this))
  else
    updateContainer(container)

enqueue = (container) ->
  setTimeout (-> update(container)), poll_time

enqueue()
```
assistant