added extension hook to the getCMSFields function