abstracted toggle-class logic and moved mutating functions to src/actions
abstracted toggle functions from note-toggle.js