Add support for local storage when editing a todo item