update appointment task