change index to display page previews. when preview clicked, page is overwritten with page contents.