Added specs and code for editing todo items