gui development
minor improvements on tree management