added next/previous footer and made the includes-type stuff happen separate from the page turning