click anywhere to close the date menu