implement add new todo item behavior