added skeleton function for all events edit function [not complete]