update portal listings
refactor to simplify code