Added event deletion (not the file part) and changed it to update when an
event is added or deleted.