why i need to click 2 time before open my widget

Hi,

Do this instead, create the widget once then store it in a variable:

flipflop node is better. You don’t need your Is Map Open variable (unless you are referencing it elsewhere).