Added/Adjusted a function to render a page tree independent view