added leave functionality to ongoingmode