fixing new portfolio dialog in WebUI