refactoring fixed xul trees for views implementation