click outside of a box to remove it