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: