add event appoinment logic condition