work in progress on the TreeLayout