changed pages to be array instead of embedded documents

reducing number elements required to store in array, single dimensional
array