adding some code to display layout and tree structure