move to use portal_url tool instead of manual url checking for actions