   constructor: (dreamfieldModel)->
     @page = 1
     @dreamfield = dreamfieldModel
-    @$container = $('#paginationAnchor').find('.thumb-2d').last()
+    @$container = $('#pagination')
     
     $('.next').click( (event) =>
       log('next')

        @currentlyLoading = true # No more entries to load.
        $('.next').parent().hide()
      
      $('#nextPageLoading').hide()

      if showAll
        $('.matrix').find('.thumb-2d').hide() # clear existing thumbs to make room for all
        $('.next').parent().hide()
        @$container.append(data.html) 
      else
        @$container.after(data.html)
      
  update: (html) ->
    @clear()


class DreamfieldModel
  load: (filters={})->
    $.getJSON("/dreamfield.json", {filters: filters}).promise()  


        