make event editting work