update portal script to allow updating of the portal page