Remove use of private variables in controllers.

Replace with properties on the object definition. Since private variables are outside of the scope of the object definition, the variable values may be the same across different instances of the same object.