add click event for closing calendar