Ported RenderIpNewNetForm and getoptiontree