fix DOM hierarchy
minor refactorings
shorten long function name 'handle-new-todo-keydown'