         previousModel = @collection.at previousIndex
 
         if previousIndex >= 0
-            @views.findByModel(previousModel).$el.find('input').focus()
+            @views.findByModel(previousModel).setFocus()
         else
             @taskForm.$el.find('input').focus()
 

            nextModel = @collection.at nextIndex

        if nextIndex < @views.length
            @views.findByModel(nextModel).$el.find('input').focus()

    onMoveUp: (cid, toFocus = null) ->
        currentModel = @views.findByModelCid(cid).model
        previousIndex = @collection.indexOf(currentModel) - 1
        previous = @collection.at previousIndex

        if previousIndex >= 1
            newOrder = null
            newPrevious = @collection.at previousIndex - 1
            newOrder = @baseCollection.getNewOrder newPrevious, previous
        else if previousIndex is 0
            newOrder = @baseCollection.getNewOrder null, previous


    onMoveDown: (cid) ->
        currentModel = @views.findByModelCid(cid).model
        nextIndex = @baseCollection.indexOf(currentModel) + 1
        nextModel = @baseCollection.at nextIndex

        # moving down is moving up the next element
        if nextModel?
