updated directive ‘tree’ and styles
bug fixes