Modified pid constant form update code to use new api