new class for edit node and lines