add page.js and mongoid index