swapped the collection name to be 'pages'