add interface submitleave and cancelleave