added a back and forward feature to paginate between pieces, working out the header section