fix incorrect behavior on create
style refactoring + esc binding on new todo