                 cp.add({id:-1, code: 'ALL', options:{color: 1}}, at: 0)
                 @set(customer_project_id: Lanes.current_user.options.project_id or -1 )
         @entries = new TimeEntries(@available_projects)
+        @listenTo(@entries, 'request', @onRequest)
         @listenTo(@entries, 'sync', @onLoad)
 
     startEditing: (editingEvent) ->

        byProject = _.groupBy entries, (entry) -> entry.customer_project_id
        _.mapValues byProject, (entries, projectId) ->
            _.reduce( entries, (total, entry) ->
                total.plus(entry.hours)
            , _.bigDecimal('0'))

    add: (attrs) ->
        attrs.customer_project = @project unless @project.id is -1
        @entries.add(attrs)

    onRequest: ->
        @isLoading = !!@entries.requestInProgress
        @trigger('change', @)

    onLoad: ->
        delete @_cachedEvents unless @entries.requestInProgress
