debugging page forward function