You should navigate to a layout by name, but we can't see those without the capx. What are they called? "Layout 1", "Layout 2"?
Edit: Make sure you have the space between 'Layout' and the number.
Suggestions. You don't need the check for CurrentPage in event 6 and 7, and adding System:Once while true to events 2-5 would advisable.