replaces usage of instance variable by using local variable

The instance variable may no longer be defined as the controller was switched to using methods for handing over variables.