click outside the box to exit