delivered the opinion of the court:
On May 29, 2007, defendant, attorney Kathryn Bischoff, filed a petition for child-representative fees under section 506 of the Illinois Marriage and Dissolution of Marriage Act (Act) (750 ILCS 5/506 (West 2006)). Following a hearing, the trial court granted defendant’s petition. Pro se plaintiff, Deborah Orlando Cooney, timely appealed. Plaintiff argues that the trial court erred in awarding defendant child-representative fees for services rendered after defendant had been discharged as the child representative. For the reasons that follow, we affirm the trial court.
On October 17, 2002, defendant was appointed as the representative of plaintiffs minor children in a postdissolution proceeding. On November 16, 2006, during the pendency of the postdissolution proceeding, plaintiff initiated the present case by filing a “Complaint for the Issuance of a Mandatory Injunction” against defendant in the chancery division of the circuit court of Winnebago County. Plaintiffs complaint asked the court to “enter an order requiring the defendant to appear on a date certain and give her testimony” in an administrative hearing related to plaintiffs custody of the minor children. Also on November 16, defendant filed a motion to withdraw as the child representative.
On December 14, 2006, defendant filed a response to plaintiffs complaint for a mandatory injunction. Defendant argued that the relief requested by plaintiff was contrary to section 506 of the Act, which provides that a child representative “shall not be called as a witness.” 750 ILCS 5/506(a)(3) (West 2006).
On December 19, 2006, the trial judge in this case ordered defendant to “attend the [administrative] hearing pursuant to the subpoena, said appearance to be on a date to be set by [ALJ] Baechle.” On that same date, the trial judge in the dissolution case granted defendant’s motion to withdraw as child representative.
On May 29, 2007, defendant filed a petition for child-representative fees. In her petition, she alleged that, on October 17, 2002, she was appointed as child representative in the postdissolution proceeding. She further alleged that, on November 16, 2006, “[pjlaintiff filed a complaint against [her] in this cause concerning her activities as a child representative in [the postdissolution proceeding].” She stated that “she has incurred attorney’s fees since November 16, 2006 in this case as a result of her appointment as a child representative in [the postdissolution proceeding] in the amount of $3,115.00.” Defendant sought fees for legal services, including the following: performing research; drafting a response to plaintiffs complaint for a mandatory injunction; reviewing plaintiffs file to respond to the administrative subpoena; preparing documents to respond to the subpoena; appearing at various times in the chancery case; drafting correspondence to the ALJ concerning her schedule; reviewing plaintiffs file prior to testifying at the administrative hearing; and testifying at the administrative hearing.
On August 2, 2007, the trial court issued a memorandum ruling that defendant could pursue her petition for fees:
“[Defendant] is a party to this suit solely because of her position as the child representative for [plaintiffs children] and all of the actions undertaken by her and the time spent have been to further and protect the best interest of her clients. Accordingly, the Petition for Child Representative Fees is granted.”
Following a hearing on the reasonableness of the amount of defendant’s fees, the trial court issued a memorandum decision stating that the services rendered “were all required and rendered in conjunction with the [p]laintiff’s efforts to compel [defendant’s] testimony and produce documents regarding her services as the [children’s] representative. [Defendant] had received two separate subpoenas and had to respond to document requests.” The court further found that “[t]he times for the various services [were] reasonable in light of the litigiousness of the parties and the novelty and complexity of the issues regarding a child representative’s testimony and privilege issues are in keeping with the duty of a child representative to protect the interests of her minor clients.” The court awarded defendant $3,115, which included additional fees for the preparation of her petition, and plaintiff now timely appeals.
On appeal, plaintiff argues that the trial court erred in awarding child-representative fees to defendant under the Act, because the Act does not allow such fees for services performed after the child representative has been discharged. Plaintiff’s argument regarding the interpretation of the Act presents a question of law to be reviewed de novo. See In re Marriage of Best, 228 Ill. 2d 107, 116 (2008) (“Construction of a statute presents a question of law to be reviewed de novo”).
The primary goal of statutory interpretation is to ascertain and give effect to the intent of the legislature, and the best indicator of that intent is the language the legislature used in the statute. We therefore begin by reciting the relevant language from the Act. Section 506(b) of the Act provides as follows:
“The court shall enter an order as appropriate for costs, fees, and disbursements, including a retainer, when the *** child’s representative is appointed. Any person appointed under this Section shall file with the court within 90 days of his or her appointment, and every subsequent 90-day period thereafter during the course of his or her representation, a detailed invoice for services rendered with a copy being sent to each party. The court shall review the invoice submitted and approve the fees, if they are reasonable and necessary. *** The provisions of Sections 501 and 508 of this Act shall apply to fees and costs for attorneys appointed under this Section.” 750 ILCS 5/506(b) (West Supp. 2007).
Section 508(a) of the Act provides that attorney-fee awards may be made in connection with, among other things, the maintenance or defense of any proceeding under the Act, the enforcement or modification of any order or judgment under the Act, and “[a]ncillary litigation incident to, or reasonably connected with, a proceeding under” the Act. 750 ILCS 5/508(a)(6) (West 2006).
From this statutory scheme, we glean three relevant limitations on a trial court’s ability to award fees pursuant to section 506(b). First, pursuant to section 508(a) the fees must be related to a proceeding under the Act or to some ancillary litigation reasonably connected with a proceeding under the Act. See 750 ILCS 5/508(a)(6) (West 2006); 750 ILCS 5/506(b) (West Supp. 2007) (incorporating section 508(a)). Second, because the child representative may obtain his or her fees only after “filling] with the court within 90 days of his or her appointment, and every subsequent 90-day period thereafter during the course of his or her representation, a detailed invoice” for the claimed fees (750 ILCS 5/506(b) (West Supp. 2007)), we can infer that a trial court may award fees only for work done “during the course of *** representation” (750 ILCS 5/506(b) (West Supp. 2007)). Third, as section 506(b) explicitly states, in order to approve the fees sought, the trial court must deem them “reasonable and necessary.” 750 ILCS 5/506(b) (West Supp. 2007). As with any other statute in which such findings or discretionary determinations are required, the trial court is vested with the duty to decide whether all three of these requirements are met before awarding fees under the Act, and the trial court’s conclusions on these points must be afforded the appropriate deference on review.1
At first blush, it would seem that plaintiff is correct that an order discharging a child representative would end the “course of his or her representation” and thus preclude the award of fees for work done thereafter. However, we do not interpret the statute as creating a per se test binding the trial court to conclude, regardless of its view of the case, that an act is not within the course of representation if it occurs after the trial court has issued an order discharging the attorney. Rather, the Act requires the trial court to reach its own conclusions as to whether work falls within the course of representation (and also whether it meets the other two statutory requirements). In reaching this determination, the trial court may, and should, take into account any relevant factors, including whether a discharge order was entered prior to the performance of the work at issue.
Aside from having the unfortunate effect of removing an incentive for child representation, a contrary approach would exalt form over substance. It is unquestioned that a trial court may rescind a discharge order or reappoint a child representative after a discharge, and the representative in such a case would be entitled to fees for reasonable and necessary work performed as a result. The only difference between that case and this is that the trial court here did not go through the technicality of entering an explicit order revoking the discharge order. The absence of such a technicality should not change our result.
By awarding fees to defendant, the trial court here implicitly concluded that defendant’s work fell within the course of representation, even though the work postdated the trial court’s discharge order. We see no basis for overturning this conclusion.
The dissent states that it is “uncontested that the defendant’s representation *** ceased *** when the trial court *** discharged her.” 386 Ill. App. 3d at 352-53. We disagree, and we emphasize what we said above, that our conclusion is that defendant is entitled to her full fees because the trial court implicitly found that the work postdating the discharge order came within the course of representation. We do not base our holding, as the dissent states, on the idea that “the trial court could have reappointed [defendant]” (emphasis in original) (386 Ill. App. 3d at 353); we base our holding on the idea that the trial court had the authority to determine that the course of representation did not cease with the discharge order.
Based on the foregoing, we affirm the judgment of the circuit court of Winnebago County.
Affirmed.
JORGENSEN, J., concurs.
The deference to be afforded the trial court on review is reflected by the standard of review applied to its decisions. A trial court’s factual determinations will not be overturned unless they are against the manifest weight of the evidence, and a trial court’s discretionary decisions will not be overturned unless the record demonstrates an abuse of discretion. In re Marriage of Vancura, 356 Ill. App. 3d 200, 203-04 (2005).