fixed editing for appointments