         @syncdb?.redo()
 
     set_task_not_done: (task_id) =>
-        @syncdb.set
-            task_id     : task_id
-            done        : false
-            last_edited : new Date() - 0
+        @set_task(task_id, {done:false})
 
     set_task_done: (task_id) =>
-        @syncdb.set
-            task_id     : task_id
-            done        : true
-            last_edited : new Date() - 0
+        @set_task(task_id, {done:true})
 
     stop_editing_due_date: (task_id) =>
-        @set_local_task_state
-            task_id          : task_id
-            editing_due_date : false
+        @set_local_task_state(task_id, {editing_due_date : false})
 
     edit_due_date: (task_id) =>
-        @set_local_task_state
-            task_id          : task_id
-            editing_due_date : true
+        @set_local_task_state(task_id, {editing_due_date : true})
 
     stop_editing_desc: (task_id) =>
-        @set_local_task_state
-            task_id      : task_id
-            editing_desc : false
+        @set_local_task_state(task_id, {editing_desc : false})
 
     edit_desc: (task_id) =>
-        @set_local_task_state
-            task_id      : task_id
-            editing_desc : true
+        @set_local_task_state(task_id, {editing_desc : true})
 
     set_due_date: (task_id, date) =>
-        @syncdb.set
-            task_id     : task_id
-            due_date    : date
-            last_edited : new Date() - 0
+        @set_task(task_id, {due_date:date})
 
     set_desc: (task_id, desc) =>
-        @syncdb.set
-            task_id     : task_id
-            desc        : desc
-            last_edited : new Date() - 0
+        @set_task(task_id, {desc:desc})
 
     minimize_desc: (task_id) =>
-        @set_local_task_state
-            task_id  : task_id
-            min_desc : true
+        @set_local_task_state(task_id, {min_desc : true})
 
     maximize_desc: (task_id) =>
-        @set_local_task_state
-            task_id  : task_id
-            min_desc : false
+        @set_local_task_state(task_id, {min_desc : false})
 
     show_deleted: =>
-        @set_local_view_state('show_deleted', true)
+        @set_local_view_state(show_deleted: true)
 
     stop_showing_deleted: =>
-        @set_local_view_state('show_deleted', false)
+        @set_local_view_state(show_deleted: false)
 
     show_done: =>
-        @set_local_view_state('show_done', true)
+        @set_local_view_state(show_done: true)
 
     stop_showing_done: =>
-        @set_local_view_state('show_done', false)
+        @set_local_view_state(show_done: false)

    help: =>
        window.open(WIKI_HELP_URL, "_blank").focus()

    set_editing: (task_id) =>

    set_current_task: (task_id) =>
        @setState(current_task_id : task_id)


        @setState
            local_task_state : local.set(obj.task_id, x)

    set_local_view_state: (obj) =>
        # Set local state related to what we see/search for/etc.
        local = @store.get('local_view_state')
        for key, value of obj
            local = local.set(key, immutable.fromJS(value))
        @setState
            local_view_state : local
        @_update_visible()

    save: =>
