solve return next Problem between Page1.java and Page2.java