fixed delete appt functionality.