Updated basic example
updated basic example to show open btn when the close btn is pressed regardless of if the WindowEvent.CLOSE event fires or not