add Action class & update MsgData