pageMode implementation, not working