* UI View and some bug fixes. * Added tree.ts missed by mistake from the previous commit * Small followup.