Trigger overlay, close overlay, navigate to another page

I have shared a small project that is acting very buggy. I have a situation where I am triggering multiple (2) overlays, executing multiple overlay swaps and then at the end I am attempting to close the 2nd overlay and navigate to a new page. I got this to work elsewhere, but for some reason this will not work for me.

https://www.figma.com/files/team/1280884551735220103/project/265806572/Test-UX-142?fuid=1278377613167197142