Fixed glaring errors in controller declaration.