changed close operations on new window.