nextpage toggle is working