working on rendering the last page