modify message property from action to actionType.