     { computeController } = kd.singletons
 
     EnvironmentFlux.actions.fetchAndUpdateStackTemplate(templateId).then (template) =>
-      @editors[template._id]?.reloadRequired = yes
+      templateId = template._id
+      @shouldReloadMap[templateId] = yes  if @editors[templateId]?
 
 
   createEditor: (stackTemplate) ->


    editor = @editors[templateId]
    delete @editors[templateId]

    editor?.destroy()



    # a cache to register created views.
    @editors = {}
    # a map of stack template ids for which editors should be reloaded
    @shouldReloadMap = {}

    @selectedEditor = null

    { router } = kd.singletons
    router.on 'RouteInfoHandled', (routeInfo) =>
      Object.keys(@shouldReloadMap).forEach @bound 'removeEditor'


  openEditor: (stackTemplateId) ->
