     # __utils.wait 20000, -> submissionStopped = no
 
   loadView:(mainView)->
-
     activityController = @getSingleton('activityController')
 
     paneMap = [

        widgetName      : 'codeWidget'
        widgetType      : ActivityCodeSnippetWidget
      ,
        name            : 'codeSharePane'
        paneName        : 'codeshare'
        constructorName : 'JCodeShare'
        widgetName      : 'codeShareWidget'
        widgetType      : ActivityCodeShareWidget
      ,
        name            : 'linkPane'
        paneName        : 'link'
        constructorName : 'JLink'
        widgetName      : 'linkWidget'
        widgetType      : ActivityLinkWidget
      ,
        name            : 'tutorialPane'
        paneName        : 'tutorial'
        constructorName : 'JTutorial'

        widgetType      : ActivityDiscussionWidget
      ]


    widgetController = @
    paneMap.forEach (pane)=> 
      @[pane.name] = mainView.addWidgetPane
        paneName : pane.paneName
        mainContent : @[pane.widgetName] = new pane.widgetType
