fixing gotonext page issue