     @showArchivedAnnotations = not @showArchivedAnnotations
 
 
+  toggleViewArchivedText : ->
+    verb = if @showArchivedAnnotations then "open" else "archived"
+    "Show #{verb} tracings "
+
+
   toggleViewArchived : (event) ->
     event.preventDefault()
     @toggleState()
     @filter = @getFilterForState()
     @render()
-
-    if (@showArchivedAnnotations)
-      @ui.archiveAllButton.hide()
-    else
-      @ui.archiveAllButton.show()
-
-    verb = if @showArchivedAnnotations then "open" else "archived"
-    @ui.toggleViewArchived.html("Show #{verb} tracings ")
-
-
-

    toggleViewArchived : "#toggle-view-archived"
    archiveAllButton : "#archive-all"

  templateHelpers :
    activeDataSets : [] # fills on @model.get("dataSets") sync event


  initialize : (options) ->

              method="POST"
              class="form-inline inline-block">
          <select id="dataSetsSelect" name="dataSetName" class="form-control">
            <% activeDataSets().forEach(function(d) { %>
              <option value="<%= d.get("name") %>"> <%= d.get("name") %> </option>
            <% }) %>
          </select>
