Set up page numbers on template