           else
             if $scope.$root != undefined and $scope.$root != null
               $scope.$root.cleanDOM = true
-            crossframe.call "resetDOM"
             annotationMapper.loadAnnotations(userAnnotations, null)
 
 



    $scope.$on events.USER_CHANGED, ->
      _resetAnnotations(annotationMapper, drafts, threading)
      loaded = []
      loadAnnotations crossframe.frames

    $scope.$on events.GROUP_FOCUSED, ->
      _resetAnnotations(annotationMapper, drafts, threading)
      loaded = []
      loadAnnotations crossframe.frames

          $scope.$root.userAnnotations = userAnnotations
          $scope.$root.updateUserList()

        crossframe.call "resetDOM"

        if selectedUser != undefined
          if !$scope.$root.editOnly
            $scope.$root.cleanDOM = false
