Added code for tree structured display of user created DOM