added temporary page number display for debugging