refactor alert module, refactor thirdPartyAlert using newest alert module