         # load project || display app
         currentApp = @currentApp
         $("#main").load "/tasks/"+project, (tpl) ->
-            currentApp = new Tasks
-                el: $(this)
-                project: project
+            currentApp.render(project)
 
 # ----------------------------------------- TASKS
 class Tasks extends Backbone.View


# ---------------------------------------- ROUTER
class AppRouter extends Backbone.Router
    routes:
        "/"                     : "index"
        "/tasks/:project"       : "tasks"

        "click .newFolder"              : "newFolder"
        "click .list .action"           : "removeUser"
        "click .addUserList .action"    : "addUser"
    render: (project) ->
        @project = project
        # HTML is our model
        @folders = $.map $(".folder", @el), (folder) =>
            new TaskFolder
