update and get appointment