 
     @render_view()
        
-  get_next_submission: () ->
-    @backend.post('get_next', {}, @ajax_callback)
+  get_next_submission: (location) ->
+    @location = location
+    @list_view = false
+    @backend.post('get_next', {location}, @ajax_callback)
+
+  get_problem_list: () ->
+    @backend.post('get_problem_list', {}, @ajax_callback)
 
   submit_and_get_next: () ->
     data =

class StaffGrading
  constructor: (backend) ->
    @backend = backend

    # all the jquery selectors
    @error_container = $('.error-container')
    @message_container = $('.message-container')


      @prompt_container.html(@prompt)
      @submission_container.html(@submission)
      @rubric_container.html(@rubric)

      # no submit button until user picks grade.
      show_submit_button = false
