made the insert custom event work