Converted event action from array to object