Recording SetupWindow when clicking on ok button