 # moving back and forward through the array of marked SVG rectangles
 classify_page.el.on decisionTree.LOAD_TASK, ({originalEvent: detail: {task}})->
   rectangles = []
-  scale = ms.el.parentNode.offsetWidth / subjectViewer.maxWidth
   
   for tool in ms.tools
     tool.deselect()

  rect_index = parseInt (subjectViewer.taskIndex - INITIAL_STEPS) / ANNOTATION_STEPS
  
  if task.key in ['illustration', 'review']
    ms.svg.attr
      width: scale * subjectViewer.maxWidth
      height: scale * subjectViewer.maxHeight
    ms.rescale 0, 0, subjectViewer.maxWidth, subjectViewer.maxHeight
  
  if task.key in ['details', 'parts'] and rectangles.length > 0

    current_tool.mark.details = value.details

classify_page.on classify_page.LOAD_SUBJECT, (e, subject)->
  ms.rescale 0, 0, subjectViewer.maxWidth, subjectViewer.maxHeight
  
  bhl_link.setAttribute 'href', subject.metadata.bhl_url
