Added an 'edit todo' pane, fixed up some state keys