bugfix for preferences not being deleted when an appointment was deleted, added ajax to remove cancelled appts in real time