utilize max_pages feature in app.js