Simplified nodeui.py slightly