added updating appointments