code for eventaction mapping