added DOM tree handler