Edit the function call for "generatePage".