added pages and config variable to index rendering