Update PortalMainClass.php