I want to present a window programmatically when a button is pressed. But currently the issue is that after the window is open, if I press the button for a second time a sec