invite popup closing by other click