Fixing bug that would persist changes to an edited todo. Closes #1