Implemented adding and editing of items to the todo list.