click to close the window