implement delete appointment functionality