Added methods to edit existing events