fixed insertAtTreeIndex; added require("mol-proto") to ui coponents