adds nodes when clicked, nicer layout, clean-up needed