                     else if mesg.event == 'error'
                         cb(mesg.error)
                     else
-                        if opts.hidden
-                            flux.getActions('projects').setTo
-                                hidden_project_list : mesg.projects
-                        else
-                            flux.getActions('projects').setTo
-                                project_list : mesg.projects
+                        flux.getActions('projects').set_project_list(mesg.projects)
                         cb()
     update_list (err) ->
         if err
             opts.cb?(err)
         else
             console.log("NOT IMPLEMENTED")
-
-update_hashtags = (project_list, deleted) ->
-    old_hashtags = undefined
-    if store.state.hashtags?
-        old_hashtags = store.state.hashtags
-    else if localStorage.projects_hashtags?
-        old_hashtags = JSON.parse(localStorage.projects_hashtags)
-    else
-        old_hashtags = {}
-    hashtags = {}
-    for project in project_list
-        if (deleted and project.deleted) or ((not deleted) and (not project.deleted))
-            for k in misc.split((project.title + ' ' + project.description).toLowerCase())
-                if k[0] == "#"
-                    tag = k.slice(1)
-                    if old_hashtags[tag]
-                        hashtags[tag] = true
-                    else
-                        hashtags[tag] = false
-    return hashtags
 
 update_project_list = exports.update_project_list = (cb) ->
     salvus_client.get_projects

    project = opts.project_id
    if store.state.project_list?
        for p in store.state.project_list
            if p.project_id == project
                opts.cb(undefined, p)
                return
    if store.state.hidden_project_list?
        for p in store.state.hidden_project_list
            if p.project_id == project
                opts.cb(undefined, p)
                return

# Define projects actions
class ProjectsActions extends Actions
    setTo: (settings) ->
        if 'project' of settings
            console.log("Tried setting projects store in invalid way -- use built in methods for setting desired properties.")
        else
            return settings

    set_project_list: (project_list) ->
        project_update_flag : Math.random()
        project_list : project_list

# Register projects actions
flux.createActions('projects', ProjectsActions)
