Refactored Edit and Delete Appointments.