switched tree to using css classes