added edit capabilities for events when coming from the calendar