fix date on edit

also allow appointments to be changed back to open