new element input should be replaced by typeahead if the grid cells are clicked