updating to the latest portal code