Implemented event loading and editing