Added dom creation and traversal