allows edits to todos to persist when user clicks away or hits return