add onRightClick menu to warnnerrule