typo corrected in onNewFunctionality handling