updated tree diagram layout