relaying out pages and index page