allowing clickClose to be called directly (with no event)