++pretty redefined template for pages