Hide widows instead of closing them when clicking on close