Original PWA Portal upgrade code