logging current page number; forbid going past first or last page. adds lots of bugs is what i mean