```coffeescript
ETahi.ApplicationRoute = Ember.Route.extend
  actions:
    chooseNewCardTypeOverlay: (phase) ->
      @controllerFor('chooseNewCardTypeOverlay').set('phase', phase)
      @render('chooseNewCardTypeOverlay',
        into: 'application'
        outlet: 'overlay'
        controller: 'chooseNewCardTypeOverlay')

    showTaskCreationOverlay: (phase) ->
      @send('showNewCardOverlay', 'newAdHocTaskOverlay', 'Task', phase)

    showMessageCreationOverlay: (phase) ->
      @send('showNewCardOverlay', 'newMessageTask', 'MessageTask', phase)

    showNewCardOverlay: (tmplName, taskType, phase) ->
      paper = @controllerFor('paperManage').get('model')
      newTaskParams = {phase: phase, type: taskType.replace(/^new/, ''), paper_id: paper.get('id')}
      newTask = @store.createRecord(taskType, newTaskParams)
      if taskType == 'MessageTask'
        newTask.get('participants').pushObject(@controllerFor('application').get('currentUser'))

      @controllerFor('newCardOverlay').set('model', newTask)
      @controllerFor('newCardOverlay').set('paper', paper)

      @render(tmplName,
        into: 'application'
        outlet: 'overlay'
        controller: 'newCardOverlay')

    closeOverlay: ->
      ETahi.animateOverlayOut().then =>
        @disconnectOutlet
          outlet: 'overlay'
          parentView: 'application'
```

Set class on new card overlays
user
```coffeescript
ETahi.ApplicationRoute = Ember.Route.extend
  actions:
    chooseNewCardTypeOverlay: (phase) ->
      @controllerFor('chooseNewCardTypeOverlay').set('phase', phase)
      @render('chooseNewCardTypeOverlay',
        into: 'application'
        outlet: 'overlay'
        controller: 'chooseNewCardTypeOverlay')

    showTaskCreationOverlay: (phase) ->
      @send('showNewCardOverlay', 'newAdHocTaskOverlay', 'Task', phase)

    showMessageCreationOverlay: (phase) ->
      @send('showNewCardOverlay', 'newMessageTask', 'MessageTask', phase)

    showNewCardOverlay: (tmplName, taskType, phase) ->
      paper = @controllerFor('paperManage').get('model')
      newTaskParams = {phase: phase, type: taskType.replace(/^new/, ''), paper_id: paper.get('id')}
      newTask = @store.createRecord(taskType, newTaskParams)
      controller = @controllerFor('newCardOverlay')

      if taskType == 'MessageTask'
        newTask.get('participants').pushObject(@controllerFor('application').get('currentUser'))

      controller.setProperties({
        model: newTask
        paper: paper
        overlayClass: (if taskType == 'MessageTask' then 'message-overlay' else 'new-adhoc-overlay')
      })

      @render(tmplName,
        into: 'application'
        outlet: 'overlay'
        controller: 'newCardOverlay')

    closeOverlay: ->
      ETahi.animateOverlayOut().then =>
        @disconnectOutlet
          outlet: 'overlay'
          parentView: 'application'
```
assistant