added tree layout to show entity hierarchy