Added parent pointer to dom nodes