Thank you for reply.
I know that the implementation is completely wrong, but I didn't know where I would implement this.
Now, I will return the form-field-procs to original and define other file to implement this option.