Your comments

Thanks Roger,

After some additional testing this works as wished
thanks a lot for the advice
Thanks for the reply Victoria

When You put a liftime to the popup page after disapearing the state remains on 1
I would like to swith it to 0 as well…
So I created a delay of the same time as the popup life time and this works

But is it possible to send a number related to the POPUP shown or hidden directly
for example when a popup is shown it is sending a 1 and when it disappears it is sending a 0

It would be a simple way to navigate in the menu

Thanks alredy