Page tree now generated and passed to templates