initial library and addNode for ui