Added mainaction and dangeraction attributes