remove window on click outside of window