Adding nodes to a custom view