fixed bug with updating nodes. Improved performance on weaker devices by not rerendering everything on every click.