Elaine: patient delete/edit/add local js change to handle writing delay redirect stuff