     $(".problem-category-state").on "switchChange.bootstrapSwitch", () ->
       $("#problem-list").trigger "filterUpdate"
 
-    problemStateChanges()
-
     $("#problem-search").on "input", () ->
       $("#problem-list").trigger "filterUpdate"

  }))())
  .done () ->
    $(".problem-state").bootstrapSwitch()

setupQueueFrame = ->
  $("#main-content").prepend """

      data: {original: !state, change: state}
      display: (if state then "Enabling" else "Disabling") + " " + problem.name  + " for the competition."
      shouldAdd: (changes) -> _.all (_.map changes, (change) ->
        !(areChangesEqual change, {target: problem.name, type: "availability"}))
      process: () ->
        apiCall "POST", "/api/admin/problems/availability", {pid: problem.pid, state: state}
    }

    change.shouldRemove = (changes) -> _.filter changes, _.partial areChangesEqual, change

    $("#problem-update-queue").trigger "makeChange", [change]

