Fixed various bugs and added editing resources in event.