         promise.then ->
             formatUserStoryTasks()
             calculateStats()
-
-    $scope.$on "task-form:create", (ctx, model) ->
-        $scope.tasks.push(model)
-        formatUserStoryTasks()
-        calculateStats()
 
     $scope.$on "stats:reload", ->
         calculateStats()

            $scope.$emit("spinner:stop")
            closeModal()
            $scope.overlay.close()
            $scope.defered.resolve()
            $gmFlash.info("The user story has been saved")

        promise.then null, (data) ->

            options.user_story = us.id

        promise = $modal.open("task-form", {'task': options})
        promise.then (us) ->
            $scope.tasks.push(us)
            formatUserStoryTasks()
            calculateStats()

