index templating with page_vars and history