fixed node onclick class method hack so it doesnt reset on redraw