reimplemented the creation of nodes using enter in an empty cell or in the cells at the end/beginning of rows.