fix refactoring example's usage of static variable

I'm guessing this example is supposed to use the static variables defined in the class to fill the form...