       tagName : "span"
       partial : "fetching apps..."
     
-    kac = @getSingleton("kodingAppsController")
-
-    kac.fetchApps (apps)=>
+    kodingAppsController = @getSingleton("kodingAppsController")
+
+    kodingAppsController.fetchApps (apps)=>
 
       temp.destroy()
       for app, manifest of apps

            tagName : "p"
            partial : "#{manifest.name} v#{manifest.version}"
            click   : => 
              kac.getApp manifest.name, (appScript)=>
                mainView = @getSingleton('mainView')
                mainView.mainTabView.showPaneByView
                  name         : manifest.name

# appView.$().css "background-color", "pink"
# a.$().css backgroundColor : "red", color : "white"
# return a

# do (appView)->
#   appView.addSubview new AceView {}, FSHelper.createFileFromPath "localfile:/Untitled.txt"
  


