make adding of nodes with typeahead work