added edit function for non-approved events