updating and deleting work! now time to compare time of appointment to current time for pending/done status