added specs and code for editing todo items