 page_zoom.addEventListener 'change', (e) ->
   return unless current_tool?
   if @.checked
-    ms.rescale 0, 0, subjectViewer.maxWidth, subjectViewer.maxHeight
-  else
     w = current_tool.mark.width + MARGIN * 2
     h = current_tool.mark.height + MARGIN * 2
+    ms.svg.attr 'width', w
+    ms.svg.attr 'height', h
     ms.rescale current_tool.mark.left - MARGIN, current_tool.mark.top - MARGIN, w, h
+  else
+    subjectViewer.rescale()
+    ms.rescale 0, 0, subjectViewer.maxWidth, subjectViewer.maxHeight
+    
 
 help.addEventListener 'change', (e) ->
   classify_page.fieldGuideContainer.attr 'aria-hidden', !@.checked

help = document.querySelector('input[name=help]')

classify_page.fieldGuideContainer.attr 'aria-hidden', !help.checked

# moving back and forward through the array of marked SVG rectangles
classify_page.el.on decisionTree.LOAD_TASK, ({originalEvent: detail: {task}})->

      task.next = 'review'
    else
      task.next = 'parts'

classify_page.el.on decisionTree.CHANGE, ({originalEvent: {detail}})->
  {key, value} = detail
