adding addEvent to cloud code