element added on second click
node and element lists as lists rather than dialogs, newElement() made
into own function