clear form now creates refId