Move all the page routines to the bottom of the file.