add some debug code to pageLayout