Added a controllerStack so that the 'destroy' method can be called, stopping memory leaks.