layout rowsTree correctly