Changed the name of the var
Corrected the controller